﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EFriendType extends Object
    {
        public var __value:int;
        public static const _EFriendTypeNormal:int = 0;
        public static const _EFriendtypeIntimate:int = 1;

        public function EFriendType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EFriendType
        {
            return new EFriendType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EFriendType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 2)
            {
                throw new MarshalException();
            }
            return EFriendType.convert(_loc_2);
        }// end function

    }
}
